@echo off
echo 测试学生查询API接口
echo.
echo 查询学号为202001001的学生信息...
curl -X GET http://localhost:8080/api/student/202001001
echo.
echo.
echo 添加一个新的测试学生...
curl -X POST http://localhost:8080/api/student/ -H "Content-Type: application/json" -d "{\"id\":\"202099999\",\"name\":\"测试学生\"}"
echo.
echo.
echo 查询新添加的学生信息...
curl -X GET http://localhost:8080/api/student/202099999
echo.
echo.
pause 